package holiday_demo;

public class Text {
    public static void main(String[] args) {
        int s=0;
        String str;
        for (int a = 3; a <=10 ; a++) {
            for (int b = 2; b <a ; b++) {
                if (a%b==0){
                    System.out.print(a+"  ");
                    s+=a;
                    break;
                }
            }
        }
        System.out.println("最终S的值为："+s);
    }
}
